﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JinfuyuanProject.Entity;
using JinfuyuanProject.Service.Interface;
using JinfuyuanProject.Repository.Interface;

namespace JinfuyuanProject.Service
{
    public class ExportService : IExportService
    {
        private readonly IExportRepository _exportRepository;

        public ExportService(IExportRepository exportRepository)
        {
            _exportRepository = exportRepository;
        }
        public bool Delete(Export export)
        {
            return _exportRepository.Delete(export);
        }

        public IQueryable<Export> GetList()
        {
            return _exportRepository.GetList();
        }

        public Export GetModel(int Id)
        {
            return _exportRepository.GetModel(Id);
        }

        public int Insert(Export export)
        {
            return _exportRepository.Insert(export);
        }

        public bool Update(Export export)
        {
            return _exportRepository.Update(export);
        }
    }
}
